package com.contextor.magiccards.model.cards;

import com.contextor.magiccards.model.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Enumerated;

/**
 * User: sergey
 * Date: Mar 28, 2011 5:12:10 PM
 */
@Entity(name = "cards")
public abstract class AbstractCard extends BaseEntity {
    @Enumerated
    private ManaType baseMana;
    @Enumerated
    private CardType type;

    @Column
    private int attack;
    @Column
    private int health;


    public ManaType getBaseMana() {
        return baseMana;
    }

    public void setBaseMana(ManaType baseMana) {
        this.baseMana = baseMana;
    }

    public CardType getType() {
        return type;
    }

    public void setType(CardType type) {
        this.type = type;
    }

    public int getAttack() {
        return attack;
    }

    public void setAttack(int attack) {
        this.attack = attack;
    }

    public int getHealth() {
        return health;
    }

    public void setHealth(int health) {
        this.health = health;
    }
}
